<?php
session_start();
error_reporting(0);
include "./config/connection.php";
if($_SESSION['username']!="")
{
?>
<!DOCTYPE html>
<html lang="en">
 <head>
     <? include "./include/head.php"; ?>
	  <? include "./include/js.php"; ?>
	  <script type="text/javascript">
		$(document).ready(function() {
			$('#pengiriman').validate({
				rules: {
				
					id_pemesanan: {
						digits: true,
					}
				},
				messages: {
				
					id_pemesanan: {
						
						digits: "Harus diisi dengan angka"
					}
				}
			});
		});
		
		</script>
  </head>
  <body>
  <? include "./include/body.php"; ?>
        <div class="span9">
        <div class="hero-unit">  
        <?php
	error_reporting(0);$input = $_GET["input"];
					if($input == "invalid")
					{
						echo"<b>Maaf data tidak lengkap, silahkan ulangi</b>" ;
					}
					
					 
	?>
	 <form class="form-horizontal" action="transfer_process_add.php" method="post" enctype="multipart/form-data" id="pengiriman">
            <fieldset>
             
                <div class="control-group">
              
                  <label class="control-label" for="input02">Pemesan*</label>
                    <div class="controls">
                        <select name="id_pemesanan">
							<option value=0 selected>- Pemesan -</option>
								<?php
									$q = mysql_query("select * from pemesanan"); 
									while ($row1 = mysql_fetch_array($q)){
									echo "<option value=$row1[id_pemesanan]>$row1[id_pemesanan]</option>";
									}
								?>
							</select>
                        <p class="help-block"></p>
                    </div>
                  <label class="control-label" for="input03">Foto*</label>
                    <div class="controls">
                       <input type="file"  name="foto">
                        
                        <p class="help-block"></p>
						* Harus Diisi
                    </div>
                 	
                  
                  
                </div>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <button class="btn btn-danger" type="submit">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Simpan&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </button>
                &nbsp;&nbsp;&nbsp;
                <button class="btn btn-danger" type="reset" value="Reset">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Batal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </button>
            </fieldset>
        </form>
            
            
          </div>
          </div><!--/row-->

         
            </div><!--/span-->
          </div><!--/row-->
        </div><!--/span-->
      </div><!--/row-->

      <hr>

<? include "./include/menubawah.php"; ?>
    <?php
    
    ?>
  </body>
</html>
<?php
    }
else {
    include 'warning.php';
}
?>